package igou.togogo.service.impl;

import igou.togogo.bean.ESku;
import igou.togogo.mapper.ESkuMapper;
import igou.togogo.pojo.EgouResult;
import igou.togogo.service.ISkuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class SkuServiceImpl implements ISkuService {

    @Autowired
    ESkuMapper skuMapper;

    @Override
    public EgouResult getById(Integer skuId) {
        ESku skus = skuMapper.selectByPrimaryKey(skuId);
        return EgouResult.ok(skus);
    }
}
